Repository navigation
Conversation
python is a Docker Official Image; pinning an exact patch + digest (3.11.5@sha256) froze shared/python on an old build, so it got neither 3.11.x patch releases nor base-image security rebuilds. Dependabot only ever offered the breaking jump to 3.15 (fails ~19/36 examples), so declining it left us stuck with no patches at all. Float the minor: python:3.11-slim-bookworm rides 3.11 patches and base rebuilds automatically. Dependabot still proposes a minor bump, but declining it no longer forfeits patches. (shared/python is the base for many examples, so a working minor is kept; moving off 3.11 is a separate, tested change given the 3.15 breakage.) Signed-off-by: Ryan Northey <ryan@synca.io>
There was a problem hiding this comment.
🟡 Changes recommended
Cached CI builds can retain an outdated Python patch because the Docker cache key depends on Dockerfile contents and builds do not force base-image pulls.
1 open issue
What changed in this PR
Updates the shared Python base image to allow Python 3.11 patches and Debian Bookworm rebuilds without adopting the newer Python version associated with example failures.
Changes:
- Replaces the exact Python patch tag and digest with
python:3.11-slim-bookworm. - Keeps the Python minor version and Debian variant unchanged.
| File | Description |
|---|---|
shared/python/Dockerfile |
Switches the shared base image to a floating Python 3.11 tag. |
Review effort: Balanced
| @@ -1,4 +1,4 @@ | |||
| FROM python:3.11.5-slim-bookworm@sha256:edaf703dce209d774af3ff768fc92b1e3b60261e7602126276f9ceb0e3a96874 AS python-base | |||
| FROM python:3.11-slim-bookworm AS python-base | |||
Member
Author
|
Reverting — floating the shared python base is the wrong call: a shared base should stay pinned to one known-good version (reproducible across every example), not silently float on patch rebuilds. Keeping the pin. (bot assisted) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

pythonis a Docker Official Image; pinning an exact patch + digest (3.11.5@sha256:…) frozeshared/pythonon an old build, so it got neither 3.11.x patch releases nor base-image security rebuilds. Dependabot only ever offered the breaking jump to 3.15 (#1628, fails ~19/36 examples —shared/pythonis the base for most python examples), so declining that left us stuck on 3.11.5 with no patches at all.Float the minor:
python:3.11-slim-bookwormrides 3.11 patches and base rebuilds automatically. Dependabot will still propose a minor bump, but declining it no longer forfeits patches. Moving off 3.11 is a separate, tested change given the 3.15 breakage.(bot assisted)